package com.sojson.result.bean;

import com.sojson.base.impl.BaseUtilDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 分页信息类
 * 
 * @author liu
 * @date 2020-11-02
 */
@ApiModel("分页信息")
public class PageParam extends BaseUtilDto {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页号", position = 0)
    private int curPage;
    @ApiModelProperty(value = "每页条数", position = 1)
    private int pageSize;
    @ApiModelProperty(value = "总页数", position = 2)
    private int totalPage;
    @ApiModelProperty(value = "总记录数", position = 3)
    private long totalRow;

    public PageParam() {}

    public PageParam(int curPage, int pageSize) {
        this.curPage = curPage;
        this.pageSize = pageSize;
    }

    /** 获取每页条数 */
    public int getPageSize() {
        return pageSize;
    }

    /** 设置每页条数 */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /** 获取当前页号 */
    public int getCurPage() {
        return curPage;
    }

    /** 设置当前页号 */
    public void setCurPage(int curPage) {
        this.curPage = curPage;
    }

    /** 获取总页数 */
    public int getTotalPage() {
        return totalPage;
    }

    /** 设置总页数 */
    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    /** 获取总记录数 */
    public long getTotalRow() {
        return totalRow;
    }

    /** 设置总记录数 */
    public void setTotalRow(long totalRow) {
        this.totalRow = totalRow;
    }

}